//  数据库配置
const DBInfo = {
  host: 'localhost',
  port: 3306,
  dialect: 'mysql',
  pool: {
    max: 5,
    min: 0,
    idle: 10000,
  },
  // query: { raw: true },
  logging: (...msg) => console.log({ msg }),
  logging: false,
};

const LoginInfo = {
  database: 'egg',
  username: 'root',
  password: '123456',
};

/**
 * minio 配置
 * @type {Object}
 * @property {String} bucketName  桶
 * @property {String} endPoint  域名
 * @property {String} port  端口
 * @property {Boolean} useSSL  是否https
 * @property {String} accessKey  ak密钥
 * @property {String} secretKey  sk密钥
 */
const MINIOCONFIG = {
  bucketName: 'lx971022', // 桶
  endPoint: '1.94.168.247', //  域名
  port: 20011, // 服务端口
  useSSL: false, // 是否http
  // accessKey: 'Z8482xxAPjjWVonP1wuc',
  accessKey: 'oZqi70UCGE8hIATAFwYD',
  // secretKey: 'dcvrPGq88AkdJlDMzGvkStYC9hvigZ3buOdt1pMw',
  secretKey: 'BMlFSvx6tc9xjfMGz0ca3TfIQmKxsIrp32Xlbjk9',
};

module.exports = {
  DBInfo,
  LoginInfo,
  MINIOCONFIG,
};
